package com.example.game;

public class MyCar extends Car {

    private static final String FAST_CAR_IMAGE_FILE = "FastCar.gif";

    private static final int MIN_SPEED_MY_CAR = 2;
    private static final int MAX_SPEED_MY_CAR = 10;

    public MyCar(Dimension2D gameBoardSize) {
        super(gameBoardSize);
        setMinSpeed(MIN_SPEED_MY_CAR);
        setMaxSpeed(MAX_SPEED_MY_CAR);
        setRandomSpeed();
        setIconLocation(FAST_CAR_IMAGE_FILE);
    }
}
